package com.erb.mapper;

import com.erb.entity.Advertisement;
import com.erb.entity.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IndexMapper {
	List<Advertisement> findAdvertisement(Boolean isShow);

	List<Notice> findNotice();

	int countNotice();

	List<Notice> findNoticeWithPage(@Param("startRow") int startRow, @Param("pageSize") int pageSize);

	Notice findNoticeById(int id);
}
